package com.es.spring_es.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.klock.annotation.Klock;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author xu
 * @date 2020/8/17
 * @desciption 自定义切面
 */
@Aspect
@Component
@Order(0)
public class ParamsCheckAspect {


    private static final Logger logger = LoggerFactory.getLogger(ParamsCheckAspect.class);

    @Before(value = "@annotation(klock)")
    public void paramsCheckBefore(JoinPoint joinPoint, Klock klock)throws Exception{

        MethodSignature signature = (MethodSignature)joinPoint.getSignature();




    }



}
